package com.longrise.android.byjk.plugins.tabfirst.homeAd;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by callxkj on 2018/3/9.
 * 包含一些跳转等基本信息
 */

public class AdDialogBean implements Parcelable {

    private String linkedtype;
    private String urltype;
    private String linkedurl;
    private String picpath;
    private String title;
    private String localpath;

    public String getLinkedtype() {
        return linkedtype;
    }

    public void setLinkedtype(String linkedtype) {
        this.linkedtype = linkedtype;
    }

    public String getUrltype() {
        return urltype;
    }

    public void setUrltype(String urltype) {
        this.urltype = urltype;
    }

    public String getLinkedurl() {
        return linkedurl;
    }

    public void setLinkedurl(String linkedurl) {
        this.linkedurl = linkedurl;
    }

    public String getPicpath() {
        return picpath;
    }

    public void setPicpath(String picpath) {
        this.picpath = picpath;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getLocalpath() {
        return localpath;
    }

    public void setLocalpath(String localpath) {
        this.localpath = localpath;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.linkedtype);
        dest.writeString(this.urltype);
        dest.writeString(this.linkedurl);
        dest.writeString(this.picpath);
        dest.writeString(this.title);
        dest.writeString(this.localpath);
    }

    public AdDialogBean() {
    }

    protected AdDialogBean(Parcel in) {
        this.linkedtype = in.readString();
        this.urltype = in.readString();
        this.linkedurl = in.readString();
        this.picpath = in.readString();
        this.title = in.readString();
        this.localpath = in.readString();
    }

    public static final Parcelable.Creator<AdDialogBean> CREATOR = new Parcelable.Creator<AdDialogBean>() {
        @Override
        public AdDialogBean createFromParcel(Parcel source) {
            return new AdDialogBean(source);
        }

        @Override
        public AdDialogBean[] newArray(int size) {
            return new AdDialogBean[size];
        }
    };
}
